package com.yyplatform.admin.platform.role.model.dto;

import java.util.Date;

import com.yyplatform.admin.infra.model.TreeNode;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * Created on 2024-09-13
 */
@Data
@Schema(title = "部门管理")
public class SysDeptDTO extends TreeNode {

    @Schema(title = "ID")
    private Long id;

    @Schema(title = "上级ID")
    private Long pid;

    @Schema(title = "部门名称")
    private String name;

    @Schema(title = "部门排序")
    private Integer orderNum;

    @Schema(title = "部门备注")
    private String remark;

    @Schema(title = "部门状态")
    private Boolean enabled;

    @Schema(title = "子部门数量")
    private Integer subCount = 0;


    private Date updateTime;
    private Date createTime;


    public String getValue() {
        return String.valueOf(id);
    }

    public String getLabel() {
        return name;
    }


}
